Skip to content

Add max_tokens configuration for LLM API#421

Merged
kagami-l merged 1 commit intomainfrom
add_max_tokens_for_llm_api
Nov 12, 2024
Merged

Add max_tokens configuration for LLM API#421
kagami-l merged 1 commit intomainfrom
add_max_tokens_for_llm_api

Conversation

@yangbobo2021
Copy link
Contributor

This pull request introduces a new feature for the LLM API by adding a configurable max_tokens setting. Changes include:

  • Implemented loading of chat configuration from a YAML file.
  • Introduced get_maxtokens_by_model function to retrieve max_tokens based on model selection.
  • Updated chat completion functions to utilize the dynamic max_tokens setting.

This enhancement aims to provide more flexibility in managing the token limits for different models, improving the overall functionality of the API.

Closes /#issue_id

- Implemented loading of chat configuration from a YAML file.
- Introduced `get_maxtokens_by_model` function to retrieve max_tokens.
- Updated chat completion functions to utilize dynamic max_tokens setting.
@kagami-l kagami-l merged commit 1fb5b9a into main Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants